

cc.Class({
    extends: cc.Component,

    properties: {

    },

    // LIFE-CYCLE CALLBACKS:

    onLoad () {
        this.animation = this.getComponent(cc.Animation);
    },

    start () {

    },

    // update (dt) {},

    //显示数字变换动画.
    showNumChange(from, to){
        this.animation.play(from.toString() + 'to' + to.toString());
    }
});
